package com.rtx.wms.customer.k3.base.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.rtx.wms.customer.k3.base.service.impl.CustomerHandle;
import com.rtx.wms.customer.k3.base.service.impl.MaterialHandle;
import com.rtx.wms.customer.k3.base.service.impl.SupplierHandle;

import io.swagger.annotations.ApiOperation;

@RestController
public class BasicController {
	
//	@Resource(name = "ApiGatWayService")
//	GatWayService gatWayService;
	
	@Autowired
	MaterialHandle materialHandle;
	
	@Autowired
	CustomerHandle customerHandle;
	
	@Autowired
	SupplierHandle supplierHandle;

    @ApiOperation(value = "物料获取", notes = "物料获取")
    @GetMapping("scheduler/material")
    public void materialscheduler() throws Exception{
    	materialHandle.schedulerBasic();
    }
    
    @ApiOperation(value = "客户获取", notes = "客户获取")
    @GetMapping("scheduler/customer")
    public void customerscheduler() throws Exception{
    	customerHandle.schedulerBasic();
    }
    
    @ApiOperation(value = "供应商获取", notes = "供应商获取")
    @GetMapping("scheduler/supplier")
    public void supplierscheduler() throws Exception{
    	supplierHandle.schedulerBasic();
    }
}
